package com.sky.yipinyoufujava.service.imp;


import com.sky.yipinyoufujava.mapper.HomeMapper;
import com.sky.yipinyoufujava.pojo.HomeCarousel;
import com.sky.yipinyoufujava.pojo.order.OrderStatus;
import com.sky.yipinyoufujava.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeServiceImp implements HomeService {

    @Autowired
    private HomeMapper homeMapper;
    @Override
    public List<OrderStatus> getOrderStatus() {
        return homeMapper.getOrderStatus();
    }

    @Override
    public List<HomeCarousel> getCarousel() {
        return homeMapper.getCarousel();
    }

    @Override
    public HomeCarousel getPoster() {
        return homeMapper.getPoster();
    }
}
